#include "conn.h"

Conn::Conn()
{
    db = QSqlDatabase::addDatabase("QSQLITE","sqlite1");
    db.setDatabaseName("info.db");
    db.open();
}

Conn::~Conn()
{
    //关闭数据库链接
    this->db.close();
}
